package com.zhijiaoyun.model;

import java.io.Serializable;
import java.util.Date;

/**
 * @author shisfish
 * @date 2017/6/6
 */
public class CourseHistory implements Serializable {
	private static final long serialVersionUID = 1878594608087771167L;

	private Long historyId;

    private Long userId;

    private Long courseId;

    private Integer status;

    private Double schedule;

    private Date modifyTime;

    private Date createTime;

    public CourseHistory() {
		super();
	}

	public CourseHistory(Long userId, Long courseId, Integer status, Double schedule) {
		super();
		this.userId = userId;
		this.courseId = courseId;
		this.status = status == null ? 0 : status;
		this.schedule = schedule;
		this.createTime = new Date();;
		this.modifyTime = this.createTime;
	}

	public Long getHistoryId() {
        return historyId;
    }

    public void setHistoryId(Long historyId) {
        this.historyId = historyId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getCourseId() {
        return courseId;
    }

    public void setCourseId(Long courseId) {
        this.courseId = courseId;
    }

    public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}

	public Double getSchedule() {
        return schedule;
    }

    public void setSchedule(Double schedule) {
        this.schedule = schedule;
    }

    public Date getModifyTime() {
        return modifyTime;
    }

    public void setModifyTime(Date modifyTime) {
        this.modifyTime = modifyTime;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
}